package tr.gov.tubitak.bilgem.esya.certviewer.viwerasn;

import tr.gov.tubitak.bilgem.esya.certviewer.Bundle;

/**
 * Created by IntelliJ IDEA.
 * User: ramazan.girgin
 * Date: 01.12.2011
 * Time: 13:29
 * To change this template use File | Settings | File Templates.
 */

public class ECertField {

    public enum ECertFieldType{
        ALL(0, Bundle.getString("ECertFieldTypeCombo.All")),
    BASIC_V1(1,Bundle.getString("ECertFieldTypeCombo.OnlyV1Fields")),
    EXTENSION(2,Bundle.getString("ECertFieldTypeCombo.OnlyExtensionFields")),
    CRITICAL_EXTENSION(3,Bundle.getString("ECertFieldTypeCombo.OnlyCriticalExtensions"));

        public String getName() {
            return name;
        }

        public int getValue() {

            return value;
        }

        int value;
        String name;
        ECertFieldType(int value, String name) {
            this.value = value;
            this.name = name;
            //To change body of created methods use File | Settings | File Templates.
        }

        @Override
        public String toString() {
            return getName();
        }
    };


    public ECertField(String title, String shortValue,String detailedValue,ECertFieldType fieldType) {
        this.title = title;
        this.shortValue = shortValue;
        this.detailedValue = detailedValue;
        this.fieldType = fieldType;
    }

    public String getTitle() {
        return title;
    }

    public String getShortValue() {
        return shortValue;
    }

    String title;
    String shortValue;

    public ECertFieldType getFieldType() {
        return fieldType;
    }

    public void setFieldType(ECertFieldType fieldType) {
        this.fieldType = fieldType;
    }

    ECertFieldType fieldType;

    public String getDetailedValue() {
        return detailedValue;
    }

    String detailedValue;
}
